<?php if ( ! Library::isNullEmpty( $this->strMensagem ) ):?>
	<div>
		<?php echo $this->strMensagem;?>
	</div>
<?php endif;?>
<div>
	<form id="form" name="form" method="POST" action="<?php echo $this->url( array( "controller" => "pessoa" , "action" => "form" ) );?>">
		<?php if ( ! Library::isNullEmpty( $this->arrDataForm ) ):?>
			<input type="hidden" name="hid_co_pessoa" id="hid_co_pessoa" value="<?php echo $this->arrDataForm[ "co_pessoa" ];?>">
		<?php endif;?>
		<div id="cadastroPequeno">
			<div id="contemLabel">
				<label class="form">Nome:</label>
			</div>
			<div>
				<input type="text" id="txt_no_pessoa" name="txt_no_pessoa" value="<?php echo( ( ! Library::isNullEmpty( $this->arrDataForm[ "no_pessoa" ] ) ) ? $this->arrDataForm[ "no_pessoa" ] : "" );?>"/>
			</div>
		</div>
		<div id="cadastroPequeno">
			<div id="contemLabel">
				<label class="form">Sexo:</label>
			</div>
			<div>
				<select id="sel_co_sexo_gn" name="sel_co_sexo_gn">
					<option value="" >Selecione...</option>
					<?php foreach( $this->arrSexoGn as $arrInfoSexoGn ):?>
						<option value="<?php echo $arrInfoSexoGn[ "co_generica" ];?>" <?php echo ( ( $this->arrDataForm[ "co_sexo_gn" ] == $arrInfoSexoGn[ "co_generica" ] ) ? "selected" : "" );?>>
							<?php echo $arrInfoSexoGn[ "ds_generica" ];?>
						</option>
					<?php endforeach;?>
				</select>
			</div>
		</div>
		<div id="cadastroPequeno">
			<div id="contemLabel">
				<label class="form">Estado Civil:</label>
			</div>
			<div>
				<select id="sel_co_estado_civil_gn" name="sel_co_estado_civil_gn">
					<option value="" >Selecione...</option>
					<?php foreach( $this->arrEstadoCivilGn as $arrInfoEstadoCivilGn ):?>
						<option value="<?php echo $arrInfoEstadoCivilGn[ "co_generica" ];?>" <?php echo ( ( $this->arrDataForm[ "co_estado_civil_gn" ] == $arrInfoEstadoCivilGn[ "co_generica" ] ) ? "selected" : "" );?>>
							<?php echo $arrInfoEstadoCivilGn[ "ds_generica" ];?>
						</option>
					<?php endforeach;?>
				</select>
			</div>
		</div>
		<div id="cadastroPequeno">
			<div id="contemLabel">
				<label class="form">Categoria:</label>
			</div>
			<div>
				<select id="sel_co_categoria_gn" name="sel_co_categoria_gn">
					<option value="" >Selecione...</option>
					<?php foreach( $this->arrCategoriaGn as $arrInfoCategoriaGn ):?>
						<option value="<?php echo $arrInfoCategoriaGn[ "co_generica" ];?>" <?php echo ( ( $this->arrDataForm[ "co_categoria_gn" ] == $arrInfoCategoriaGn[ "co_generica" ] ) ? "selected" : "" );?>>
							<?php echo $arrInfoCategoriaGn[ "ds_generica" ];?>
						</option>
					<?php endforeach;?>
				</select>
			</div>
		</div>
		<div id="botoesCadastro">
			<input type="button" value="Limpar" onclick="limparForm();">
			<input type="submit" value="Salvar">
		</div>
	</form>
</div>
<script>
	function limparForm()
	{
		for ( i = 0; i <= document.form.length; i++ )
		{
			if ( ( document.form[ i ].type != "button" ) && ( document.form[ i ].type != "submit" ) ) document.form[ i ].value = "";
		}
	}
</script>